<template>
	<view class="content">
		<view class="grid">
			<view class="grid-item" v-for="(item,index) in 6" :key="index" :style="{backgroundColor:current==index?'#F8F1DF':'#EFEFEF',border:current==index?'1px solid #FACD89':'1px solid #EFEFEF'}" @click="current=index">
				<view class="top">
					<text>日卡</text>
				</view>
				<view class="middle">
					<text>￥20.00</text>
				</view>
				<view class="bottom">
					<text>折合￥20.00/天</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				current:0
			}
		},
		methods:{
			
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		.grid{
			display: flex;
			flex-wrap: wrap;
			margin-top: 20rpx;
			.grid-item{
				width: 220rpx;
				height: 150rpx;
				text-align: center;
				border-radius: 10rpx;
				margin: 0 10rpx 10rpx 0;
				.top{
					font-size: 26rpx;
					margin-top: 10rpx;
				}
				.middle{
					font-size: 28rpx;
					color: #F14364;
					font-weight: bold;
					margin-top: 10rpx;
				}
				.bottom{
					font-size: 24rpx;
					margin-top: 20rpx;
				}
			}
		}
	}
</style>
